package work6;

public class User2 {
	private int id;
	private String name;
	private int money;
	private List<Goods> good;
	public User2(int id, String name, int money, ArrayList<Goods> good) {
		super();
		this.id = id;
		this.name = name;
		this.money = money;
		this.good = good;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getMoney() {
		return money;
	}
	public void setMoney(int money) {
		this.money = money;
	}
	
	public List<Goods> getGood() {
		return good;
	}
	public void setGood(List<Goods> good) {
		this.good = good;
	}
	public User2() {
		super();
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "{"+this.id+" "+this.name+" "+this.money+""+this.good+"}";
	}
}